package com.dingreading.cloud.soms.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Data
@Table(value = "ca_teacher")
public class CaTeacher implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 公司uid
     */
    @ApiModelProperty(value = "公司uid")
    private String corpUid;

    /**
     * 门店uid
     */
    @ApiModelProperty(value = "门店uid")
    private String storeUid;

    /**
     * 课程表id
     */
    @ApiModelProperty(value = "课程表id")
    private Long scheduleId;

    /**
     * 课程表uid
     */
    @ApiModelProperty(value = "课程表uid")
    private String scheduleUid;

    /**
     * 活动id，没有活动id，去查课程表id
     */
    @ApiModelProperty(value = "活动id")
    private Long lessonId;

    /**
     * 活动uid，没有活动id，去查课程表id
     */
    @ApiModelProperty(value = "活动uid")
    private String lessonUid;

    /**
     * 教师类型 1.主讲导读 2.助教
     */
    @ApiModelProperty(value = "教师类型 1.主讲导读 2.助教")
    private Integer teacherType;

    /**
     * 教师账号
     */
    @ApiModelProperty(value = "教师账号")
    private String username;

    /**
     * 教师uid
     */
    @ApiModelProperty(value = "教师uid")
    private String staffUid;

    /**
     * 真实全名
     */
    @ApiModelProperty(value = "真实全名")
    private String fullName;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    private String nickName;

    /**
     * 教师电话
     */
    @ApiModelProperty(value = "教师电话")
    private String pubPhone;

    /**
     * 教师私人电话
     */
    @ApiModelProperty(value = "教师私人电话")
    private String priPhone;

    /**
     * 创建人uid
     */
    @ApiModelProperty(value = "创建人uid")
    private String addStaffUid;

    /**
     * 创建人姓名
     */
    @ApiModelProperty(value = "创建人姓名")
    private String addStaffName;

    /**
     * 添加时间
     */
    @ApiModelProperty(value = "添加时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

}
